<!DOCTYPE html>
<html lang="zh-Hans-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="./color.css">
  <style>
    .parent {
      display: grid;
      grid-template-rows: repeat(3, 40px) auto;
      grid-template-columns: 200px auto;
      height: 80vh;
      gap: 10px;
    }


    .box:nth-of-type(1) {
      grid-row-start: 1;
      grid-column-end: 2;
      /* grid-column: 1; */
    }

    .box:nth-of-type(2) {
      grid-row: 1/3;
    }

    .box:nth-of-type(3) {
      grid-row-start: 2;
      grid-row-end: 5;

    }

    .box:nth-of-type(4) {
      grid-row-start: 3;
      grid-row-end: 5;
    }
  </style>
</head>

<body>
  <div class="parent white">
    <div class="box pink">1</div>
    <div class="box purple">2</div>
    <div class="box blue">3</div>
    <div class="box green">4</div>
  </div>
</body>

</html>